package com.woniuxy.learnmap.service;

import com.woniuxy.commons.dto.LearnMapDetailDto;
import com.woniuxy.commons.dto.LearnMapDto;
import com.woniuxy.commons.entity.LearnMap;
import com.woniuxy.commons.entity.LearnMapDetail;
import com.woniuxy.commons.entity.PageBean;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Auther: 王敞
 * @E-mail： 365799712@qq.com
 * @Date: 2020/07/17/11:56
 * @Description: 学习地图service
 */
public interface LearnMapService {
    /*
    *
     * @Description: 新增一条学习地图
     * @Param: [learnMap]
     * @return: int
     * @Author: 王敞
     * @Date: 12:08 2020/7/17
     **/
    public void addLearnMap(LearnMap learnMap, List<LearnMapDetailDto> learnMapDetailDtos);

    public String uploadImage(MultipartFile multipartFile);

    public PageBean<LearnMapDto> findLearnMapsByPage(int page,int pageSize);

    public List<LearnMapDetailDto> findLearnMapDetailByLMId(int lmid);

    public void del(int id);
}
